package com.yunsc.store.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yunsc.common.serializer.TimestampToDateSerializer;
import com.yunsc.store.vo.PageDetailVO;
import lombok.Data;

import java.io.Serializable;

/**
 * 店铺页面记录表
 * 
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-22 11:35:52
 */
@Data
@TableName("yunsc_page")
public class YunscPageEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 页面ID
	 */
	@TableId
	private Integer pageId;
	/**
	 * 页面类型(10首页 20自定义页)
	 */
	private Integer pageType;
	/**
	 * 页面名称
	 */
	private String pageName;
	/**
	 * 页面数据
	 */
	@JsonInclude(JsonInclude.Include.NON_NULL)
	@JsonProperty("pageData")
	private String pageData;
	/**
	 * 商城ID
	 */
	private Integer storeId;
	/**
	 * 软删除
	 */
	private Integer isDelete;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@JsonSerialize(using = TimestampToDateSerializer.class)
	private Integer createTime;
	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@JsonSerialize(using = TimestampToDateSerializer.class)
	private Integer updateTime;

	@TableField(exist = false)
	private PageDetailVO page_data;

}
